/**
 * Project: greenline-epay-biz-core
 * 
 * File Created at 2013-4-2
 * 
 * Copyright 2012 Greenline.com Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Greenline Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Greenline.com.
 */
package com.greenline.pay.biz.manager.common;

import java.io.Serializable;

/**
 * @Type BaseObject
 * @Desc BaseObject
 * @author jianyun.zheng
 * @date 2013-4-2
 * @Version V1.0
 */
public class BaseResult implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = 5719699727292463281L;

    /**
     * 是否有错
     */
    private boolean hasError;

    /**
     * 返回消息
     */
    private String message = "操作成功";

    public boolean getHasError() {
        return hasError;
    }

    public void setHasError(boolean hasError) {
        this.hasError = hasError;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setErrorMessage(String errorMessage) {
        this.message = errorMessage;
        this.hasError = Boolean.TRUE;
    }
}
